package com.xh.bussiness.teachbook.service;



import java.util.List;
import java.util.Map;

import com.xh.bussiness.teachbook.bean.dto.WrongQuestionsDto;
import com.xh.bussiness.teachbook.bean.request.WrongQuestionsRequest;
import com.xh.bussiness.teachbook.model.WrongQuestions;
import com.xh.bussiness.tiku.bean.dto.KnowledgeDto;
import com.xh.bussiness.tiku.model.Knowledge;
import com.xh.bussiness.tiku.model.Question;
import com.xh.core.bean.XhPage;
import com.xh.core.service.IBaseService;

/**
 * <p>
 * 错题本 服务类
 * </p>
 *
 * @author JQM
 * @since 2019-08-27
 */
public interface IWrongQuestionsService extends IBaseService<WrongQuestions> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryWrongQuestionsPage(XhPage page, WrongQuestionsRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryWrongQuestions(WrongQuestionsRequest bean);
    /**
     * 查询每个学科的错题数量
     * @param stuId
     * @return
     */
	public List<Map<String, Object>> queryCountBySubject(String stuId);

	public List<Question> queryBySubject(WrongQuestionsRequest bean);

	public XhPage<WrongQuestionsDto> queryByPage(XhPage<WrongQuestionsDto> page, WrongQuestionsRequest bean);

	public List<KnowledgeDto> queryCountKnowledge(WrongQuestionsRequest bean);

	public List<KnowledgeDto> queryCountByKnowledgeTree(WrongQuestionsRequest bean);


}
